/**
 * Created by Amaris on 2016/10/8.
 */
var express = require('express');
var router = express.Router();
var sellerCtrl = require('../../controller/controller.seller.js');

router.get('/getSellerInfo', function (req, res, next) {
    sellerCtrl.get(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.post('/createSeller', function (req, res, next) {
    sellerCtrl.create(req.body, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});


router.get('/getSellerContactList', function (req, res, next) {

    sellerCtrl.getSellerContactList(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});



module.exports = router;
